import request from '@/utils/request'

export function getOpenCourseList(params) {
  return request({
    url: '/ops/openCourse/list',
    method: 'get',
    params: { tenantId: params }
  })
}

export function getRecommendOpenCourseList(params) {
  return request({
    url: '/ops/openCourse/recommendList',
    method: 'get',
    params: { tenantId: params }
  })
}

export function updateOpenCourse(data) {
  return request({
    url: '/ops/openCourse/update',
    method: 'post',
    data
  })
}

export function deleteOpenCourse(id) {
  return request({
    url: '/ops/openCourse/delete',
    method: 'get',
    params: { id }
  })
}
